<?php /* Smarty version Smarty-3.1.7, created on 2012-04-03 10:40:34
         compiled from ".\templates\article.tpl" */ ?>
<?php /*%%SmartyHeaderCode:156974f7a55122574e8-63134230%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'a258164b56a279caa5204f5d224599d31ab77a07' => 
    array (
      0 => '.\\templates\\article.tpl',
      1 => 1332911989,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '156974f7a55122574e8-63134230',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'rows' => 0,
    'row' => 0,
    'categorys' => 0,
    'row_reply' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.7',
  'unifunc' => 'content_4f7a5512c245f',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_4f7a5512c245f')) {function content_4f7a5512c245f($_smarty_tpl) {?><?php if (!is_callable('smarty_modifier_date_format')) include 'C:\\pleiades\\xampp\\htdocs\\BBS\\libs\\plugins\\modifier.date_format.php';
?><?php  $_smarty_tpl->tpl_vars['row'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['row']->_loop = false;
 $_smarty_tpl->tpl_vars['keyname'] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['rows']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['row']->key => $_smarty_tpl->tpl_vars['row']->value){
$_smarty_tpl->tpl_vars['row']->_loop = true;
 $_smarty_tpl->tpl_vars['keyname']->value = $_smarty_tpl->tpl_vars['row']->key;
?>
    <div class="commentBox">

    
    <?php if ($_smarty_tpl->tpl_vars['row']->value['url']!=''){?>
        <a href="<?php echo $_smarty_tpl->tpl_vars['row']->value['url'];?>
">
        <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['row']->value['nickname']);?>

        </a>
        さんの投稿<br>
    <?php }else{ ?>
        <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['row']->value['nickname']);?>
さんの投稿<br>
    <?php }?>

    カテゴリ：<a href="index.php?cid=<?php echo $_smarty_tpl->tpl_vars['row']->value['category_id'];?>
">
    <?php echo $_smarty_tpl->tpl_vars['categorys']->value[$_smarty_tpl->tpl_vars['row']->value['category_id']];?>
</a><br>

    
    <?php if ($_smarty_tpl->tpl_vars['row']->value['photo']!=''){?>
        <img src="./img/<?php echo $_smarty_tpl->tpl_vars['row']->value['photo'];?>
" width="100"><br>
    <?php }?>
    <?php echo nl2br(htmlspecialchars($_smarty_tpl->tpl_vars['row']->value['content']));?>
<br>

    
    <?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['row']->value['created_at'],"%Y年%m月%e日");?>
<br>

    <a href="reply.php?comment_id=<?php echo $_smarty_tpl->tpl_vars['row']->value['id'];?>
">返信する</a>
    </div>
    <?php  $_smarty_tpl->tpl_vars['row_reply'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['row_reply']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['row']->value['reply']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['row_reply']->key => $_smarty_tpl->tpl_vars['row_reply']->value){
$_smarty_tpl->tpl_vars['row_reply']->_loop = true;
?>
        <div class="replyBox">
        <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['row_reply']->value['nickname']);?>
 さんの返信<br>
        <?php echo nl2br(htmlspecialchars($_smarty_tpl->tpl_vars['row_reply']->value['content']));?>
<br>
        <?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['row_reply']->value['created_at'],"%Y年%m月%e日");?>
<br>
        </div>
    <?php } ?>
<?php } ?>
<?php }} ?>